#ifndef NET_H
#define NET_H

#include "stdfax.h"


int create_listen_ports(int port, int proto, unsigned char* addr, int reuse);

int create_socket(int port, int proto, unsigned char* addr, int reuse);

int set_sock_buff(int fd, int bytes);

int set_non_block(int fd);

int set_reuse(int fd);


int make_addr_from_bin(struct sockaddr_in *addr, unsigned char * data);

#endif